﻿using Ensemble_Windows.Game;
using NLua;

namespace Ensemble_Windows.Core
{
    /// <summary>
    ///     主游戏类
    /// </summary>
    public class Game : Direct2D1Render, IService
    {
        /// <summary>
        ///     是否Debug
        /// </summary>
        public bool IsDebug { get; set; }

        /// <summary>
        ///     lua状态
        /// </summary>
        public Lua LuaState { get; set; }

        /// <summary>
        ///     初始化游戏
        /// </summary>
        /// <param name="configuration">配置</param>
        protected override void Initialize(Configuration configuration)
        {
            base.Initialize(configuration);
            LuaState = new Lua();
        }
    }
}